package com.blog.springcloud.dao;

import com.blog.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author chenlin
 * @create 2021-01-06  9:55
 */
@Mapper
public interface PaymentDao {
    /**
     * 创建订单
     * @param payment
     * @return
     */
    public int create(Payment payment);

    /**
     * 查询订单
     * @param id
     * @return
     */
    public Payment getPaymentById(@Param("id") Long id);
}
